<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			let token = uni.getStorageInfoSync('token')
			if (token) {
				uni.reLaunch({
					url: '/pages/index/index'
				})
			} else {
				uni.reLaunch({
					url: '/pages/login/login'
				})
			}
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
	/* 功能类 */
	@import "static/styles/expand.scss";
	@import "static/styles/generate.scss";
	/* 字体图标扩展 */

	/* 全局样式 */
	.margin {
		margin-right: 32rpx;
		margin-left: 32rpx;
	}

	.line {
		height: 2rpx;
		background-color: #f3f3f3;
	}

	.triangle {
		width: 0rpx;
		height: 0rpx;
		border: 20rpx solid transparent;
		/*以下四个样式对应四种三角形，任选其一即可实现*/
		/* border-top-color:lightseagreen; */
		/* border-left-color:lightseagreen; */
		/* border-right-color:lightseagreen; */
		// border-bottom-color: #4c4c4c;
		border-bottom-color: #f3f3f3;
		margin-top: -30rpx;
		margin-left: 212rpx;
	}
</style>